package reputation.impl;

import java.util.ArrayList;

import recomendation.Tag;
import recomendation.persist.DAO;
import reputation.ItemFile;
import reputation.persist.ItemFileDAO;

public class ItemFileDAOImpl {
	public static void actualiza(ItemFile t){
		ItemFileDAO.connect();
		ItemFileDAO.updateItemFile(t);
		ItemFileDAO.disconnect();
	}
	
	
	
	public static int consulta(String texto){
		ItemFileDAO.connect();
		int calif =ItemFileDAO.getScoreByText(texto);
		
		ItemFileDAO.disconnect();
		
		return calif;
	}
}
